<?php
/**
 * Created by PhpStorm.
 * User: dell
 * Date: 2018/10/31
 * Time: 15:56
 */
$file_name = 'one.html';

if(file_exists($file_name) && filemtime($file_name)-time() < 10)
{
    require_once($file_name);
}
else
{
    ob_start();
}
?>

<p>good time</p>

<?php
file_put_contents($file_name,ob_get_contents());
